package com.woniu.service;



import java.util.List;

import com.woniu.been.entity.Video;

public interface VideoService {
    Video saveVideo(Video video);
    List<Video> getVideosByCourseId(Integer courseId);
    boolean updateVideoTitle(Integer videoId, String title);
    boolean deleteVideoByFileName(String fileName);
    boolean deleteVideosByFileNames(List<String> fileNames);
    Video findVideoByFileName(String fileName);
    List<Video> getVideosByCourseIdAndFilters(Integer courseId, String categoryName);
    
    /**
     * 根据章节ID获取视频列表
     * @param chapterId 章节ID
     * @return 视频列表
     */
    List<Video> getVideosByChapterId(Integer chapterId);
    
    /**
     * 根据课程小类ID获取视频列表
     * @param subCategoryId 课程小类ID
     * @return 视频列表
     */
    List<Video> getVideosBySubCategoryId(Integer subCategoryId);
    
    /**
     * 根据课程大类ID获取视频列表
     * @param mainCategoryId 课程大类ID
     * @return 视频列表
     */
    List<Video> getVideosByMainCategoryId(Integer mainCategoryId);
} 